package com.itheima;

import java.util.Scanner;

/*
   四舍五入
 */
public class ArrayDemo10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double d = sc.nextDouble();
        int f = a(d);
        System.out.println(f);
    }

    public static int a(double d) {
        int a = (int) (d * 10);
        int b = a % 10;
        if (b < 5) {
            b = 0;
        } else {
            b = 1;
        }
        a = a / 10 + b;
        return a;
    }
}
